package com.ruoyi.shelf.domain;

import java.util.Date;
import java.util.List;
import java.util.Locale;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.location.domain.Location;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 货架管理对象 t_shelf
 * 
 * @author lh
 * @date 2024-10-28
 */
@Data
public class Shelf extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 货架ID (主键) */
    private Long id;

    /** 货架编号 */
    @Excel(name = "货架编号")
    private String shelfNo;

    /** 所属库区ID */
    @Excel(name = "所属库区ID")
    private Long areaId;

    /** 货架名称 */
    @Excel(name = "货架名称")
    private String name;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    private List<Location> locations;

}
